﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Policy;

namespace broker.duty.YG
{
    /// <summary>
    /// 阳光人寿传家保少儿年金保险
    /// </summary>
    class Class4
    {
        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {

            da.Value = ppa.Amount * 0.2;
        }

        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {

            if (ppa.Age == 80)
            {
                da.Value = ppa.TotalFee;

            }

        }

        public void Calc1(IPolicyPeriodActing ppa, IDutyActing da)
        {

            if (ppa.SchemePeriodActing.InsurantStates.Contains("身故"))
            {
                da.Value = ppa.TotalFee;
                ppa.IsCurrentFinish = true;
            }
        }

    }
}
